using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace BizTalk.BuildGenerator.Tasks.Tests.BAM
{
    /// <summary>
    /// Contains tests for the bam tasks
    /// </summary>
    //[TestClass]
    public class BamTasksTests : MSBuildTest 
    {
        /// <summary>
        /// Executes the bam msbuild test
        /// </summary>
        //[TestMethod]        
        public void RunBamMsBuildTest()
        {
            const string arguments = "BAMMsBuildScript.msbuild /t:Build";
            var result = RunMSBuild(arguments);
            Assert.IsTrue(result == 0, "The MSBuild Task failed.");
        }

        /// <summary>
        /// Pretest setup
        /// </summary>
        //[TestInitialize]
        public void Setup()
        {
            GetFileAndWriteToPath("BizTalk.BuildGenerator.Tasks.Tests.BAM.BAMMsBuildScript.msbuild", "BAMMsBuildScript.msbuild");                     
        }        
    }
}
